<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>印章详情</title>
</head>
<body class="layui-layout-body">

    <div class="layui-body">
        <!-- 内容主体区域 -->
        <div class="body_right">
            <h4 class="nav_title nav_smltitle">
                <a href="javascript">印章管理</a>
                <i>></i>
                <span>印章详情</span>
			</h4>
               <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
			        <ul class="layui-tab-title">
			            <li class="layui-this">印章详情</li>
			            <li lay-id="DEVICES_LIST">设备列表</li>
			            <li lay-id="APPLY_LIST">申请记录</li>
			            <li lay-id="USED_LIST">使用记录</li>
			        </ul>
			        <div class="layui-tab-content" >
			            <div class="layui-tab-item layui-show">
		            			 <div class="layui-form-item">
					              <label for="sealName" class="layui-form-label">
					                  印章名称
					              </label>
					              <div class="layui-input-inline layui-form-mid layui-word-aux">${seal.sealName}</div>
					          </div>
					          
					          <div class="layui-form-item">
					              <label for="description" class="layui-form-label">
					                  印章描述
					              </label>
					              <div class="layui-input-inline layui-form-mid layui-word-aux" style="width:150px">${seal.description}</div>
					          </div>
					          
					          <div class="layui-form-item">
					              <label for="isForcedPhoto" class="layui-form-label">
					                  强制拍照
					              </label>
					              <div class="layui-input-inline layui-form-mid layui-word-aux">
									  <#if seal.isForcedPhoto=="Y">
									  	是
									  <#else>
									  	否
									  </#if>		     
								 </div>
					          </div>
					          
					          <div class="layui-form-item">
					              <label for="model" class="layui-form-label">保管员</label>
					              <div class="layui-input-inline layui-form-mid">
					                <#if seal.person??>
					              	<div id="custosInfo">
					              		<div class="user">
						              		<div class="avatar"><img src="${seal.person.portrait!'/asset/images/portrait.png'}"></div>
						              		<div class="info">
						              			<div class="name">${seal.person.name}</div>
						              			<div class="position">${seal.person.position}</div>
						              		</div>
						              	</div>
					              	</div>
					              	<#else>
					              	未设置
					              	</#if>
							      </div>
					          </div>
					          <!--
					          <div class="layui-form-item">
					              <label for="model" class="layui-form-label">审核流程</label>
					              <div class="layui-input-inline layui-form-mid layui-word-aux">
							          
							      </div>
					          </div>
					          -->
		                </div>
		            </div>
		       </div>
        </div>
     </div>
  
     
     <script>
     
        //JavaScript代码区域
        layui.use(['element','form','layedit','laypage'], function(){
            var element = layui.element;
            var form = layui.form;
            var   layer = layui.layer;
            
            element.on('tab(docDemoTabBrief)', function(elem){
		  		var id = $(this).attr('lay-id');
		  		if(id == 'DEVICES_LIST'){
		  		 	location.href='/seal/devicesList.htm?sealId=${seal.sealId}';
		  		}
		  		
		  		if(id == 'APPLY_LIST'){
		  			location.href='/seal/applyList.htm?sealId=${seal.sealId}';
		  		}
		  		
		  		if(id == 'USED_LIST'){
		  			location.href='/seal/usedList.htm?sealId=${seal.sealId}';
		  		}
		   });
          
        });
    </script>   
</body>
</html>